// const baseUrl = 'http://10.99.44.100:5500' // 服务器地址
// alert('111')
const baseUrl = 'http://10.99.44.144:5500' // 服务器地址
const fetchInitCode = () => {
    //  alert('1113')
    fetch(`${baseUrl}/getInitCode`).then(response => {
        return response.json()
    }).then(data => {
        console.log("data",data);
        return data.initCode
    }).catch(err => {
        console.error({ err })
    })
}
const fetchUserInfo = (requestCode) => {
    fetch(`baseUrl/getUserInfo`, {
        method: 'post',
        body: JSON.stringify({ requestCode })
    }).then(response => {
        return response.json
    }).catch(err => {
        console.error({ err })
    })
}